package com.gxa.common.vo;
import com.gxa.common.constant.Constants;
import lombok.Data;
/**
 * 返回layui数据表格的统一对象
 */
@Data
public class JsonResult<T> {
    private Integer code = Constants.SUCCESS;
    private String msg;
    private long count;
    private T data;

    public JsonResult() {
    }

    public JsonResult(T data) {
        this.data = data;
    }

    public JsonResult(long count, T data) {
        this.count = count;
        this.data = data;
    }

    public JsonResult(String msg, long count, T data) {
        this.msg = msg;
        this.count = count;
        this.data = data;
    }


}
